// This function processes the quiz data

function submitQuiz1()
{

	var pass = 0;
	
	var q1 = document.forms.quiz1.moons;
	var q2 = document.forms.quiz1.dates;
	var q3 = document.forms.quiz1.discovered;

	
	if( q1[ 0 ].checked == true )
	{
		alert( "Question 1 correct!" );
		
		pass = pass + 1;
	}
	else
	{
		alert( "Question 1 wrong!" );
	}
	
	
if( q2[ 1 ].checked == true )
	{
		alert( "Question 2 correct!" );
		
		pass = pass + 1;
	}
	else
	{
		alert( "Question 2 wrong!" );
	}
	
	if( q3[ 2 ].checked == true )
	{
		alert( "Question 3 correct!" );
		
		pass = pass + 1;
	}
	else
	{
		alert( "Question 3 wrong!" );
	}
	
	
	if( pass >= 2 )
	{
		alert( "You passed!");

	}
		
	else
	{
		alert( "You Failed");
	}	
	


}